<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout::head">
    <title>menus : Create</title>
</head>
<body>
<div th:replace="layout::navbar"></div>
<h1>menus : Create</h1>
<div class="container">
    <form id="menuForm" th:action="@{/(form)}" th:object="${menu}"
          action="#" method="post">
        <div th:if="${#fields.hasErrors('*')}" class="alert alert-error">
            <p th:each="error : ${#fields.errors('*')}" th:text="${error}">
                Validation error</p>
        </div>
        <div class="pull-right">
            <a th:href="@{/}" href="menus.html"> menus </a>
        </div>
        <input type="hidden" th:field="*{menuid}"
               th:class="${#fields.hasErrors('menuid')} ? 'field-error'"/>
        <label
                for="menuname">menuname</label>
        <textarea th:field="*{menuname}"
                  th:class="${#fields.hasErrors('menuname')} ? 'field-error'"></textarea>
        <label   for="menuurl">menuurl</label> <input type="text"
                                                     th:field="*{menuurl}"
                                                     th:class="${#fields.hasErrors('menuurl')} ? 'field-error'"/>
        <div class="form-actions">
            <input type="submit" value="Save"/>
        </div>
    </form>
</div>
</body>
</html>
